//
//  UnityCaptureConnection.h
//  UnityCapture
//
//  Created by Adrian on 29.10.09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "UnityCaptureProtocols.h"

extern NSString *UCCaptureConnectionEstablishedNotification;
extern NSString *UCStartCaptureNotification;
extern NSString *UCStopCaptureNotification;

@interface UnityCaptureConnection : NSObject {
	
	NSThread *thread;
	
	NSConnection *serverConnection;
	NSConnection *clientConnection;
	NSDistantObject *helperProxy;
	id <UCHelperAppProtocol> helperProto;
	
	BOOL startWithOpenWindow;
	NSArray *loadedData;
}

- (id)initWithOpenWindow:(BOOL)open;

- (BOOL)connectionIsValid;

- (NSArray*)loadSettings;
- (void)sendNewResolutionWithWidth:(float)width andHeight:(float)height;
- (void)sendStatsWithFps:(float)fps andTime:(float)time;
- (void)openHelper;
- (void)toggleCapture;

@end
